<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>绩效信息</title>
    <link rel="stylesheet" href="/vendor/simple-line-icons/css/simple-line-icons.css">
    <link rel="stylesheet" href="/vendor/font-awesome/css/fontawesome-all.min.css">
    <link rel="stylesheet" href="/css/styles.css">
    <style type="text/css">
        .table-responsive1 {
            display: block;
            width: 100%;
            height: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            -ms-overflow-style: -ms-autohiding-scrollbar
        }

        .table-responsive1 > .table-bordered {
            border: 0
        }

        .col-md-6-2 {
            position: relative;
            width: 50%;
            min-height: 1px;
            padding-right: 15px;
            padding-left: 15px
        }

        .col-md-6-2 {
            -webkit-box-flex: 0;
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
            max-width: 50%
        }

        .row {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -ms-flex-wrap: wrap;
            flex-wrap: wrap;
            margin-right: 15px;
            margin-left: 15px
        }

        .first {
            position: relative;
            height: 30px;
            line-height: 30px;
        }

        .first button, .first input {
            position: absolute;
            left: 0px;
            top: 0;
            width: 94px;
            height: 30px;
            color: #fff;
            background-color: skyblue;
            border-radius: 0px;
            border: none;
            outline: none;
            cursor: pointer;
        }

        .first input {
            opacity: 0;
            width: 185px;
            left: 0; /*这里是为了让cursor效果在按钮内完全生效，但是弊端就是宽度增加，在按钮左侧看不见的位置也能点击到*/
        }
    </style>
</head>
<body>
<!--<h2><a th:href="@{/add}" class="btn btn-primary">添加项目</a></h2>-->
<div class="card">
    <div class="card-header bg-light">
        审核员工项目
    </div>
    <div class="card-body">
        <div class="table-responsive">
            <table class="table table-bordered" id="table_add">
                <thead>
                <tr>
                    <th>员工编号</th>
                    <th>项目编号</th>
                    <th>项目名称</th>
                    <th>修改建议</th>
                    <th>查看文件</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="sta:${staffKpis}">
                    <td th:text="${sta.staffId}"></td>
                    <td th:text="${sta.projectId}"></td>
                    <td th:text="${sta.projectName}"></td>
                    <td th:text="${sta.advice}"></td>
                    <td>
                        <form action="/download" method="post" enctype="multipart/form-data">
                            <div class="first">
                                <button>选 择 文 件</button>
                                <input type="file" name="file"/>
                            </div>
                            <input type="submit" value="确 定 下 载" class="btn btn-primary"/>
                        </form>
                    </td>
                    <!--                    <td> <a class="btn btn-primary" href="/manager/hhh" >修改意见</a> </td>-->
                    <td><a class="btn btn-primary" th:href="@{/advice/}+${sta.getStaffId()}">修改意见</a></td>


                </tr>


                </tbody>
            </table>
            <button type="button" class="btn btn-secondary btn-sm add">首页</button>
            <button type="button" class="btn btn-secondary btn-sm add">上一页</button>
            <button type="button" class="btn btn-secondary btn-sm add">下一页</button>
            <button type="button" class="btn btn-secondary btn-sm add">尾页</button>
        </div>
    </div>
</div>

<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/popper.js/popper.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="/vendor/chart.js/chart.min.js"></script>
<!--<script src="/js/manager/all_msg.js"></script>-->
</body>
</html>
